<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>17JOYS管理后台 - 分类管理</title>
<link href="templates/images/skin.css" rel="stylesheet" type="text/css" />
<link href="templates/css/work.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.icon-new {
background-image:url(templates/images/toolbar/icon-new.png);
}
.icon-edit {
background-image:url(templates/images/toolbar/icon-edit.png);
}
.icon-delete {
background-image:url(templates/images/toolbar/icon-delete.png);
}
.icon-help {
background-image:url(templates/images/toolbar/icon-help.png);
}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="templates/images/mail_leftbg.gif"><img src="templates/images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="templates/images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">分类管理</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="templates/images/mail_rightbg.gif"><img src="templates/images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="templates/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
    <table class="toolbar" width="100%">
    	<tr>
    		<td width="86%" class="search">
		    <form action="__URL__/index" method="post">
				筛选：<input type="text" name="keyword" />
				<select name="ftype">
				<option value="title">标题</option>
				<option value="alias">别名</option>
				<option value="id">编号</option>
				</select>
				<input type="submit" value="查询" />
				<input type="reset" value="清空" />
		      </form>
		      <script>
		      function del(){
		          if(window.confirm('请确认是否删除？'))
		          	document.adminForm.submit();
		      }
		      </script>
		      </td>
		      <td>
      			<a href="__URL__/add"><span class="icon-new"></span>创建</a>
      		  </td>
      		  <td>
      			<a href="#" onclick="del();"><span class="icon-delete"></span>删除</a>
      		  </td>
      		  <td>
      			<a href="#"><span class="icon-help"></span>帮助</a>
      		  </td>
    		  </tr>
    		</table>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2" valign="top">&nbsp;</td>
        <td>&nbsp;</td>
        <td valign="top">
        <form name="adminForm" action="__URL__/delete" method="post">
        <table class="adminlist" cellpadding="1">
        <thead>
      		<tr>
      		<th style="width:2%;">#</th>
			<th>标题</th>
			<th style="width:15%">别名</th>
			<th style="width:5%">发布</th>
			<th style="width:5%">排序</th>
			<th style="width:15%">访问级别</th>
			<th style="width:20%">所属单元</th>
			<th style="width:1%">ID</th>
      		</tr>
      	</thead>
      	<tbody>
      		<volist name="clist" id="category" key="k">
      		<tr>
      		<td>
      		<input type="checkbox" name="did[{$k}]" value="{$category['cid']}" />
      		</td>
      		<td align="center">
      		<a href="__URL__/edit/id/{$category['cid']}">
      		{$category['ctitle']}
      		</a>
      		</td>
      		<td>{$category['calias']}</td>
      		<td>
      		<eq name="category['cpublished']" value="1">
      		<img width="16" height="16" border="0" alt="已启用" src="templates/images/toolbar/p.png"/>
      		<else />
      		<img width="16" height="16" border="0" alt="已查封" src="templates/images/toolbar/x.png"/>
      		</eq>
      		</td>
      		<td>{$category['corder']}</td>
      		<td>
      		<eq name="category['caccess']" value="0">
      			公开
      		<else />
      			{$rlist[$category['caccess']]}
      		</eq>
      		</td>
      		<td>
      		<a href="__APP__/Section/edit/id/{$category['sectionid']}">
      		{$category['sec_name']}
      		</a>
      		</td>
      		<td>{$category['cid']}</td>
      		</tr>
      		</volist>
      	</tbody>
      	<tfoot>
      	<tr>
			<td colspan="10">
			<del class="container">
				<div class="pagination">
					<div class="limit">
					每页显示数#
					<select onchange="submitform();" size="1" class="inputbox" id="limit" name="limit">
					<option value="5">5</option>
					<option value="10">10</option>
					<option value="15">15</option>
					<option selected="selected" value="20">20</option>
					<option value="25">25</option>
					<option value="30">30</option>
					<option value="50">50</option>
					<option value="100">100</option>
					<option value="0">所有</option>
					</select>
					{$show}
					</div>
				</div>
			</del>				
			</td>
		</tr>
      	</tfoot>
      	</table>
      	</form>     	
        </td>        
      </tr>
      
    </table>
    </td>
    <td background="templates/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="templates/images/mail_leftbg.gif"><img src="templates/images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="templates/images/buttom_bgs.gif"><img src="templates/images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="templates/images/mail_rightbg.gif"><img src="templates/images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
